using MongoDB.Bson;using MongoDB.Bson.Serialization.Attributes;

namespace ETModel
{
	[Config((AppType.ClientH |  AppType.ClientM | AppType.Gate | AppType.Map))]
	public partial class UnitConfigCategory : ACategory<UnitConfig>
	{
	}

	[System.Serializable]
	public class UnitConfig: IConfig
	{
		public long Id { get { return _id; } set { _id = value; } } public long _id;
		/// <summary>
		/// 名字
		/// </summary>
		public string Name;
		/// <summary>
		/// 模型中心点相对站位的偏移量
		/// </summary>
		public float[] Center;
		/// <summary>
		/// 模型需要本地缩放
		/// </summary>
		public float[] LocalScale;
		/// <summary>
		/// 客户端模型所在的包名(没有则使用物理形状创建Mesh)
		/// </summary>
		public string BundleName;
		/// <summary>
		/// 客户端模型所在配置预加载对象名
		/// </summary>
		public string BundlePrefabName;
		/// <summary>
		/// 客户端模型对象在预加载对象中的引用名
		/// </summary>
		public string GameObjectRefName;
		/// <summary>
		/// 物理形状类型名
		/// </summary>
		public string BulletShapeType;
		/// <summary>
		/// 物理Box形状的半径
		/// </summary>
		public float[] BulletBoxRadius;
		/// <summary>
		/// 物理三角形网格组成形状使用文件方式加载
		/// </summary>
		public string BulletTriangleMeshFile;
		/// <summary>
		/// 物理形状的缩放
		/// </summary>
		public float[] BulletLocalScale;
	}
}
